/* $Id: ExitAction.java 35 2009-05-06 19:05:18Z aaron.day $ */
package org.crazydays.gameplan.swing;


import java.awt.event.ActionEvent;

import org.crazydays.i18n.Messages;

/**
 * ExitApplication
 */
public class ExitApplication
    extends AbstractActionWrapper
{
    /** serial version uid */
    public final static long serialVersionUID = "$Id".hashCode();

    /** messages */
    public final static Messages MESSAGES = Messages.getInstance();

    /** resource key: exit */
    public final static String RESKEY_NAME = "action.ExitApplication.name";

    /**
     * ExitApplication constructor.
     */
    public ExitApplication()
    {
        super(MESSAGES.format(RESKEY_NAME));
    }

    /**
     * Close application.
     * 
     * @param event Event
     * @see java.awt.event.ActionListener#actionPerformed(ActionEvent)
     */
    public void actionPerformed(ActionEvent event)
    {
        System.exit(0);
    }

}
